package com.cx.bank.pojo;

/**
 * @author jxau_scf
 * @date 2021/7/23 - 15:43
 */
public class User {
    private Integer userId;
    private String userName;
    private String  userPassword;
    /**
     * 使用标记，1可用，0冻结
     */
    private Integer userFlag;
    /**
     * 用户类型（00系统用户 01管理员）
     */
    private String userType;
    /**
     * 账户余额
     */
    private Double balance;

    public User() {
    }

    public User(String userName, String userPassword, Integer userFlag, String userType, Double balance) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.userFlag = userFlag;
        this.userType = userType;
        this.balance = balance;
    }

    public User(Integer userId, String userName, String userPassword, Integer userFlag, String userType, Double balance) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userFlag = userFlag;
        this.userType = userType;
        this.balance = balance;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public Integer getUserFlag() {
        return userFlag;
    }

    public void setUserFlag(Integer userFlag) {
        this.userFlag = userFlag;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userFlag=" + userFlag +
                ", userType='" + userType + '\'' +
                ", balance=" + balance +
                '}';
    }
}
